Skip to content

refactor(id): split WorldService impl out of world_session/mod.rs (#4717) - #8382

Merged
dezren39 merged 1 commit into
mainfrom
queue/8835-4717-ws-split
Nov 11, 2026
Merged

dezren39 merged 1 commit into
mainfrom
queue/8835-4717-ws-split

Conversation

@dezren39

@dezren39 dezren39 commented Nov 11, 2026 •

Copy link
Copy Markdown
Member

Summary

Splits pkgs/id/src/world_session/mod.rs below the F11.10 production-line limit and removes its grandfather entry from the guard, per #4717 (task 8835).

  • The impl WorldService block (744 lines) moves verbatim into the new submodule pkgs/id/src/world_session/service.rs. The WorldService type stays in types.rs; the public and re-export surface of crate::world_session is unchanged.
  • mod.rs drops to 2,326 lines (service.rs: 778). The only visibility changes: try_reserve_module_upload and install_wasm_reserved become pub(super) because the session driver in mod.rs calls them. tests.rs imports Arc, Store, and Compiler directly instead of relying on mod.rs's slimmed use-block.
  • .github/scripts/check-production-line-limit.sh: the world_session/mod.rs grandfather entry is removed in this same PR.

This adopts the approach of an uncommitted split found in an earlier session's worktree for this task (2026-11-09), re-executed mechanically on current main (main had since gained the #5543 session-topology work).

Evidence

Merge Danger

Door: two-way. Blast radius: pkgs/id world_session only — a mechanical code move with no behavior change; the full world_session test suite passes unchanged.


Autofix with [code]smith
Open in [code]smith · Need help on this PR? Tag @codesmith-bot with what you need.

@dezren39
dezren39 requested a review from a team as a code owner November 11, 2026 01:12
@coderabbitai

coderabbitai Bot commented Nov 11, 2026 •

Copy link
Copy Markdown

Warning

Review limit reached

You've used all free OSS reviews for now. Wait for the free limit to reset to keep reviewing this public repository.

Next included review available in 1 minute.

Check out review usage here.

View limit details

Limit details: You’ve used the included review currently available.

Learn how review limits work.

Review configuration:

Run configuration

  • Source mode: Auto
  • Repository: Unavailable
  • Branch: Unavailable
  • File: No configuration file from this repository applied
  • Commit: Unavailable
  • Layers: defaults
  • Review profile: CHILL
  • Plan: Advanced
  • Run ID: ed2f2e72-8a08-4a9e-88bd-25f91371ae67
Commits

Reviewing files that changed from the base of the PR and between 48a1aaf and 35d1682.

Files selected for processing: 4

  • .github/scripts/check-production-line-limit.sh
  • pkgs/id/src/world_session/mod.rs
  • pkgs/id/src/world_session/service.rs
  • pkgs/id/src/world_session/tests.rs
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

Share

@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Nov 11, 2026 •

Copy link
Copy Markdown
Codex Review Summary: ✅ Completed

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-11-11T02:43:41.255998Z 35d1682 New commits
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@dezren39 dezren39 added queue/parked Queue task is parked (waiting on CI, time, or an event) status/parked Deliberately paused with a recorded resume condition work/assigned Queue worker lifecycle state labels Nov 11, 2026
@dezren39

Copy link
Copy Markdown
Member Author

🤖 Agent note · parked on CI (task 8835, lane code-f)

PR #8382 implements the #4717 split: impl WorldService moved verbatim from pkgs/id/src/world_session/mod.rs (now 2,326 lines) into the new pkgs/id/src/world_session/service.rs (778 lines), and the F11.10 grandfather entry for world_session/mod.rs is removed in the same PR. Verified on the laptop: cargo test --lib world_session 64/64 pass, rustfmt clean, the guard no longer flags either file. The approach adopts an earlier session's uncommitted split for this task, re-executed on current main.

Parked as a CI wait: checks are pending at head 6bde0bd with no failures. Note the CI production-line check may flag pre-existing over-limit files on main (pkgs/id/src/commands/serve.rs, pkgs/id/src/directory.rs) — that failure mode is already tracked as issue #6959 and is not caused by this PR. Resume: when PR #8382 checks complete, merge if green (a red production-line check that lists only serve.rs/directory.rs is the #6959 pre-existing failure — disposition it on the PR thread, do not expand this PR's scope).

)

Moves the impl WorldService block (744 lines) verbatim into the new world_session/service.rs submodule; the type stays in types.rs and the public/re-export surface is unchanged. Two methods called from the session driver (try_reserve_module_upload, install_wasm_reserved) become pub(super); tests.rs imports Arc, Store and Compiler directly instead of through the slimmed mod.rs use-block. Removes the world_session/mod.rs grandfather entry from the F11.10 production-line guard in the same PR, as #4717 requires.

Verified on the laptop: cargo test --lib world_session 64/64 pass; rustfmt clean; the guard no longer flags world_session/mod.rs (2,326 lines) or service.rs (778). The split adopts the approach of the uncommitted 2026-11-09 opencode worktree for this task, re-executed on current main.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

queue/parked Queue task is parked (waiting on CI, time, or an event) status/parked Deliberately paused with a recorded resume condition work/assigned Queue worker lifecycle state

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant